//
//  WYRedPacketCountCell.m
//  Boss
//
//  Created by admin on 2018/6/5.
//  Copyright © 2018年 admin. All rights reserved.
//

#import "WYRedPacketCountCell.h"
@interface WYRedPacketCountCell()<UITextFieldDelegate>

@end


@implementation WYRedPacketCountCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.textField.delegate = self;
    
    // Initialization code
}
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
    if (_saveData) {
        _saveData([textField.text stringByReplacingCharactersInRange:range withString:string]);
    }
    
    return YES;
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
